package com.example.nacosconsumerpaymemt7777.service;

import com.example.common.Bean.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;
import com.example.common.entity.*;

/**
 * @author zhaoren
 * @version 1.0
 * @description TODO
 * @date 2020/9/6 9:52
 **/
@FeignClient(value = "nacos-provider-payment",fallback = OpenFeinExceptionHandler.class)
public interface OpenFeinService {

    /**
     * 查询所有学生
     * @return
     */
    @GetMapping("/student/all")
    public Result<Object> findAll();

}
